package demo_table.frame;

import javax.swing.*;

public class TableFrame extends JFrame {

    private ShowDataPane sdp;

    private DownPane dp;

    public TableFrame(){
        this.setSize(800,600);
        this.setLayout(null);
        this.setResizable(false);

        sdp = new ShowDataPane();
        sdp.setBounds(0, 0, 800, 400);

        dp = new DownPane(this);
        dp.setBounds(0,400, 800, 200 );

        this.add(sdp);
        this.add(dp);

        this.setDefaultCloseOperation(3);
        this.setLocationRelativeTo(null);
        this.setVisible(true);
    }

    public ShowDataPane getSdp(){
        return this.sdp;
    }
}
